using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using XFGameFramework;
using UnityEngine.UI;
public class WinPanel : Panel
{
   
    [SerializeField]private Button btn_close;


    private GameController gameController => Module.LoadController<GameController>();
    public override void OnLoaded(params object[] param)
    {
        base.OnLoaded(param);
        Debug.Log("WinPanel OnLoaded");
        btn_close.onClick.AddListener(OnCloseBtnClick);
    }
    void OnCloseBtnClick()
    {
        gameController.SetGameState(GameState.Game_Ready);
        EventManager.TriggerEvent(EventConst.战斗结束);
        Close(); 
    }

}
